PROJECT(gfb)

CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
SET(CMAKE_COLOR_MAKEFILE ON)
SET(CMAKE_VERBOSE_MAKEFILE ON)
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
SET(CMAKE_BUILD_TYPE debug)

FIND_PACKAGE(Boost 1.42 REQUIRED COMPONENTS serialization)

FIND_PACKAGE(Qt4 REQUIRED)
SET(QT_USE_QTNETWORK TRUE)
SET(QT_USE_QTWEBKIT TRUE)
SET(QT_USE_QTCORE TRUE)
SET(QT_USE_QTGUI TRUE)
SET(QT_USE_QTTEST TRUE)

SET(CXX_WARNINGS -Wmissing-field-initializers -Wsign-compare -Wunknown-pragmas -Wall -Wextra)

ADD_DEFINITIONS(${CXX_WARNINGS})

LINK_DIRECTORIES(${Boost_LIBRARY_DIRS} ${LIBRARY_OUTPUT_PATH})

INCLUDE_DIRECTORIES( 
    ${Boost_INCLUDE_DIRS} 
    ${CMAKE_SOURCE_DIR}/src/lib
  )

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

ADD_SUBDIRECTORY(src)
